package cn.edu.xmu.oomall.customer.microservice.vo;

import cn.edu.xmu.oomall.customer.model.vo.SimpleAdminUserVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;

/**
 * @author RenJieZheng 22920192204334
 * modifiedBy Jianxiang Xie 2021-12-9 20:34:08 删除不必要的方法
 */
/**
 * @author Haotian Cheng
 * @date 2021-12-14 12:41:47
 */

/**
 * @modifiedBy Jiazhe Yuan
 * @date 2021-12-22 00:59:09
 * @modify 时间格式转换为ZoneDateTime
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class CouponActivityVoInfo {
    private Long id;
    private String name;
    private SimpleShopVo shop;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime couponTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime beginTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime endTime;
    private Integer quantity;
    private Byte quantityType;
    private Byte validTerm;
    private String imageUrl;
    private String strategy;
    private Byte state;
    private Integer numKey;
    private SimpleAdminUserVo createBy;
    private SimpleAdminUserVo modifiedBy;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime gmtCreate;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime gmtModified;
}
